home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / src / prog / NOTES < prev    next >
Encoding:
Internet Message Format  |  1986-02-01  |  1.9 KB

  1. Date:    Tue, 7 Jan 86 15:22:04 GMT
  2. From: Julian Pardoe <jbdp@cl.cam.ac.uk>
  3. Subject: The `prog' channel
  4.  
  5. The  outgoing side (sendprog) consists of the following (fairly standard)
  6. modules:
  7.     ch_prog  qu2pr_send pr_wtmail
  8.  
  9. The  incoming  side (recvprog) consists of a main module pr2mm_send and a
  10. module pr_errmsg which contains various bits  of  code  associated  with
  11. the  reporting  of errors.  Its main failing is that is does no logging,
  12. but with SAFEFORK #defined it does a good job at ensuring  failures  are
  13. reported.
  14.  
  15. There  are  probably  several  ways  the channel could be improved.  Its
  16. most obvious failing is that sendprog has no understanding  of  the  code
  17. returned  by  the called program,  currently treating all non-zero codes
  18. as temporary errors (if I've done it correctly).
  19.  
  20. Knowledge  of  these  could  most  easily  be  built  in  by  adding the
  21. possibility of a configuration file,  specified by  having  `<'  as  the
  22. first  letter  of  the configuration parameter.  This file would contain
  23. the command line and further information.  I could imagine  one  reading
  24. something like:
  25.  
  26.     # configuration file for the example channel
  27.     command /bin/program -s $(from) $(to.local)
  28.  
  29.     #define return code values: code(s) MMDF_error descriptive_string
  30.     error 0   OK   message delivered
  31.     error 1   PARM invalid parameter
  32.     error 2-9 AGN  service not available
  33.  
  34.     # norelay: implies that this program can deliver mail only
  35.     # to its ultimate destination (often set when $(to.local) is
  36.     # specified as this means we're throwing away all host names)
  37.     norelay 
  38.  
  39.  
  40. Julian Pardoe
  41. -------------
  42.  
  43. University of Cambridge         Tel:     +44 223 352435 ext. 265
  44.         Computer Laboratory     Arpa:    <@ucl-cs: jbdp@cl.cam.ac.uk>
  45. Corn Exchange Street            Janet:   jbdp@UK.AC.Cam.CL
  46. CAMBRIDGE, CB2 3QG              UUCP:    mcvax!ukc!cl-jenny!jbdp
  47. Great Britain
  48.